from django.urls import path

from api import views

urlpatterns = [
    path('book/', views.BookAPIView.as_view()),
    path('book/<str:id>/', views.BookAPIView.as_view()),
    path('gen/', views.BookGenericAPIView.as_view()),
    path('gen/<str:pk>/', views.BookGenericAPIView.as_view()),
    path('v3/', views.BookGenericAPIViewV3.as_view()),
    path('v3/<str:pk>/', views.BookGenericAPIViewV3.as_view()),
    path('login/', views.UserAPIView.as_view({'post': 'user_login'})),
    path('regis/', views.UserAPIViewV2.as_view({'post': 'user_register'})),
]